package middlecontent.order;

import org.junit.Test;

public class ArithmeticTest {
    @Test
    public void m1(){
        int i = 5;
        //System.out.println(i/0);
        System.out.println(i/0.0);
        double m = 0.0;
        System.out.println(m/0.0);
    }

    public void m2(){
        float i = 10;
        float j = -i;
        i = -j;
    }

    public void m3(){
        int i = 100;
        i = i+10;
        i+=10;
    }

    public int m4(){
        int a = 80;
        int b = 7;
        int c = 10;
        return (a+b)*c;
    }

    public int m5(int i,int j){
        return((i+j-1)& ~(j-1));
    }

    public void m6(){
        int i = 10;
        i++;
    }

    public void m7(){
        int i  =10;
        int a = i++;
        int j = 20;
        int b = ++j;

    }

    public void m8(){
        int i = 10;
        i = i++;
        System.out.println(i);
    }




}
